package view.views.dialogContentViews;

import java.awt.FlowLayout;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

import model.Constants;
import model.Subnet;
import view.components.SizeComboBox;

public class MultiListPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private SizeComboBox sizeBox = null;

	public MultiListPanel(Subnet sub) {

		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

		JPanel contentPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

		JLabel title = new JLabel(Constants.HOSTCOUNT);

		contentPanel.add(title);

		this.add(contentPanel);

		JPanel sizeBoxPanel = new JPanel(contentPanel.getLayout());

		sizeBox = new SizeComboBox(sub);

		sizeBoxPanel.add(sizeBox);

		this.add(sizeBoxPanel);
	}

	public SizeComboBox getSizeComboBox() {
		return sizeBox;
	}

}
